/**
 * Copyright 2025 Beijing Volcano Engine Technology Co., Ltd. All Rights Reserved.
 * SPDX-license-identifier: BSD-3-Clause
 */

import { Helmet } from 'react-helmet';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import MainPage from './pages/MainPage';
import PracticeReport from './pages/PracticeReport';
import ChooseAi from './pages/ChooseAi';
import AiPracticeList from './pages/AiPracticeList';
import AiPracticeDetail from './pages/AiPracticeDetail';
import TrainingEnd from './pages/TrainingEnd';
import RankingList from './pages/RankingList';
import DialogueList from './pages/DialogueList';
import Report from './pages/Report';
import ToStudy from './pages/StudyPage';
import PlayBack from './pages/PlayBack';
import Setting from './pages/Setting'
import Home from './pages/Home'
import '@arco-design/web-react/dist/css/arco.css';

function App() {
  console.warn('运行问题可参考 README 内容进行排查');
  return (
    <BrowserRouter>
      {/* <Helmet>
        <link rel="icon" href="/favicon.png" />
      </Helmet> */}
      <Routes>
        <Route path="/home">
          <Route index element={<Home />} />
        </Route>

        <Route path="/">
          <Route index element={<AiPracticeList />} />
          <Route path="/*" element={<AiPracticeList />} />
        </Route>
        {/* 陪练记录 */}
        <Route path="/practiceRecord">
        <Route index element={<PracticeReport />} />
        </Route>
        {/* ai陪练 */}
        <Route path="/aiPractice">
        <Route index element={<ChooseAi />} />
        </Route>
        {/* ai陪练列表 */}
        {/* <Route path="/aiPracticeList">
        <Route index element={<AiPracticeList />} />
        </Route> */}
        <Route path="/aiPracticeStart">
        <Route index element={<MainPage />} />
        </Route>
        {/* ai陪练详情 */}
        <Route path="/aiPracticeDetail">
        <Route index element={<AiPracticeDetail />} />
        </Route>
        {/* 训练结束 */}
        <Route path="/TrainingEnd">
        <Route index element={<TrainingEnd />} />
        </Route>
         {/* 排行榜 */}
         <Route path="/RankingList">
        <Route index element={<RankingList />} />
        </Route>
        {/*对话记录 */}
        <Route path="/DialogueList">
        <Route index element={<DialogueList />} />
        </Route>
        {/*训练报告 */}
        <Route path="/Report">
        <Route index element={<Report />} />
        </Route>
         {/*训练报告 */}
        <Route path="/ToStudy">
          <Route index element={<ToStudy />} />
        </Route>
        {/* 回放页面 */}
        <Route path="/PlayBack">
          <Route index element={<PlayBack />} />
        </Route>
        <Route path="/SettingPage">
          <Route index element={<Setting />} />
        </Route>
      </Routes>
    </BrowserRouter>
  );
}

export default App;
